import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/enter',
    name: 'enter',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/enter.vue')
  },
  {
    path: '/LoginByEmailForStu',
    name: 'LoginByEmailForStu',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/LoginByEmailForStu.vue')
  },
  {
    path: '/LoginByEmailForTea',
    name: 'LoginByEmailForTea',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/LoginByEmailForTea.vue')
  },
  {
    path: '/LoginByPasswordForStu',
    name: 'LoginByPasswordForStu',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/LoginByPasswordForStu.vue')
  },
  {
    path: '/LoginByPasswordForTea',
    name: 'LoginByPasswordForTea',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/LoginByPasswordForTea.vue')
  },
  {
    path: '/Teacher_Info',
    name: 'Teacher_Info',
    component: () => import(/* webpackChunkName: "about" */ '../views/Teacher_Info.vue')
  },
  {
    path: '/post/PostManage',
    name: 'PostManage',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/PostManage.vue')
  },
  {
    path: '/post/post_Stu',
    name: 'post_Stu',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/post_Stu.vue')
  },
  {
    path: '/post/post_Tea',
    name: 'post_Tea',
    component: () => import(/* webpackChunkName: "about" */ '../views/post/post_Tea.vue')
  },
  {
    path: '/Stu_Info',
    name: 'Stu_Info',
    component: () => import(/* webpackChunkName: "about" */ '../views/Stu_Info.vue')
  },
  {
    path: '/sql',
    name: 'sql',
    component: () => import(/* webpackChunkName: "about" */ '../views/sql.vue')
  },
  {
    path: '/main',
    name: 'main',
    component: () => import(/* webpackChunkName: "about" */ '../views/main.vue')
  },
  {
    path: '/demo1',
    name: 'demo1',
    component: () => import(/* webpackChunkName: "about" */ '../views/demo1.vue')
  },
  {
    path: '/demo2',
    name: 'demo2',
    component: () => import(/* webpackChunkName: "about" */ '../views/demo2.vue')
  },
  {
    path: '/demo3',
    name: 'demo3',
    component: () => import(/* webpackChunkName: "about" */ '../views/demo3.vue')
  },
  {
    path: '/demo4',
    name: 'demo4',
    component: () => import(/* webpackChunkName: "about" */ '../views/demo4.vue')
  },
  {
    path: '/demo5',
    name: 'demo5',
    component: () => import(/* webpackChunkName: "about" */ '../views/demo5.vue')
  },
  {
    path: '/Sidebar',
    name: 'Sidebar',
    component: () => import(/* webpackChunkName: "about" */ '../views/Sidebar.vue')
  },
  {
    path: '/SidebarForT',
    name: 'SidebarForT',
    component: () => import(/* webpackChunkName: "about" */ '../views/SidebarForT.vue')
  },
  {
    path: '/practice/MyPractice',
    name: 'MyPractice',
    component: () => import(/* webpackChunkName: "about" */ '../views/practice/MyPractice.vue')
  },
  {
    path: '/practice/AssignPractice',
    name: 'AssignPractice',
    component: () => import(/* webpackChunkName: "about" */ '../views/practice/AssignPractice.vue')
  },
  {
    path: '/practice/doTest',
    name: 'doTest',
    component: () => import(/* webpackChunkName: "about" */ '../views/practice/doTest.vue')
  },
  {
    path: '/practice/AssignTest',
    name: 'AssignTest',
    component: () => import(/* webpackChunkName: "about" */ '../views/practice/AssignTest.vue')
  },
  {
    path: '/practice/MyTest',
    name: 'MyTest',
    component: () => import(/* webpackChunkName: "about" */ '../views/practice/MyTest.vue')
  },
  {
    path: '/StuHomework/MyHomework',
    name: 'MyHomework',
    component: () => import(/* webpackChunkName: "about" */ '@/views/StuHomework/MyHomework.vue')
  },
  {
    path: '/StuHomework/MyExam',
    name: 'MyExam',
    component: () => import(/* webpackChunkName: "about" */ '@/views/StuHomework/MyExam.vue')
  },
  {
    path: '/StuHomework/doExam',
    name: 'doExam',
    component: () => import(/* webpackChunkName: "about" */ '@/views/StuHomework/doExam.vue')
  },
  {
    path: '/teacher/TAssignExam',
    name: 'TAssignExam',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/TAssignExam.vue')
  },
  {
    path: '/teacher/TExam',
    name: 'TExam',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/TExam.vue')
  },
  {
    path: '/teacher/TAssignHomework',
    name: 'TAssignHomework',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/TAssignHomework.vue')
  },
  {
    path: '/teacher/THomework',
    name: 'THomework',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/THomework.vue')
  },
  {
    path: '/teacher/HomeworkStatus',
    name: 'HomeworkStatus',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/HomeworkStatus.vue')
  },
  {
    path: '/teacher/HomeworkContent',
    name: 'HomeworkContent',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/HomeworkContent.vue')
  },
  {
    path: '/teacher/ExamStatus',
    name: 'ExamStatus',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/ExamStatus.vue')
  },
  {
    path: '/teacher/ExamContent',
    name: 'ExamContent',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/ExamContent.vue')
  },
  {
    path: '/teacher/AnalysisReport',
    name: 'AnalysisReport',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/AnalysisReport.vue')
  },
  {
    path: '/questions/detail',
    name: 'detail',
    component: () => import(/* webpackChunkName: "about" */ '../views/questions/detail.vue')
  },
  {
    path: '/questions/exercise',
    name: 'exercise',
    component: () => import(/* webpackChunkName: "about" */ '../views/questions/exercise.vue')
  },
  {
    path: '/teacher/StudentList',
    name: 'StudentList',
    component: () => import(/* webpackChunkName: "about" */ '../views/teacher/StudentList.vue')
  },



]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
